package com.example.shardingspheredemo.model.t.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.shardingspheredemo.model.t.entity.BookEntity;
import com.example.shardingspheredemo.model.t.mapper.BookMapper;
import com.example.shardingspheredemo.model.t.service.BookService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Andrew Yang
 * @className BookServiceImpl
 * @description
 * @package com.example.shardingspheredemo.model.t.service.impl
 * @create 2020-09-10 17:36
 */
@Service("bookService")
public class BookServiceImpl extends ServiceImpl<BookMapper, BookEntity> implements BookService {
    @Override
    public int insertForEach(List<BookEntity> bookEntityList) {
        return baseMapper.insertForeach(bookEntityList);
    }
}
